<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>绩效考核系统</title>

<script type="text/javascript" src="scripts/jquery/jquery.js"></script>
<script type="text/javascript" src="scripts/common.js"></script>

<style type="text/css">
<!--
body {
	background: #f7f7f7;
}

a.a1 {
	display: block;
}

a.a1:hover {
	background-image: url(images/index_01.gif);
	background-repeat: no-repeat;
}
-->
</style>
<script type="text/javascript" src="main_data/public.js"></script>
<script type="text/JavaScript">
<!--
function MM_swapImgRestore() {
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() {
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) {
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() {
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->

function judgeAuth(id)
{
	if($("#" + id).val() == "false")
	{
		alert("对不起!您没有权限");
		return false;
	}	
	else
	{
		showLoad();
	}
	return true;
}
</script>
</head>
<body >
<table border="0" cellpadding="0" cellspacing="0" width="100%">
	<tbody>
		<s:if test='#session._login_user_info.isAdmin'>
		<tr>
			<td align="center" valign="top">
				<table border="0" cellpadding="0" cellspacing="0" width="400" align="center">
					<tbody>
						<tr>
							<td align="center"><a href="attendance/attendance-add.action" target="main"
								onmouseout="MM_swapImgRestore()"
								onmouseover="MM_swapImage('Image1','','images/index_1.gif',1)" onclick="return judgeAuth('stockin')"><img
								src="images/index_01.gif" name="Image15" id="Image1"
								border="0" width="92"></a></td>
						</tr>
					</tbody>
				</table>
			</td>
		</tr>
		<tr>
			<td align="center" valign="top">
				<table border="0" cellpadding="0" cellspacing="0" width="400" align="center">
					<tbody>
						<tr>
							<td align="center"><a href="publiceva/publicItem-list.action" target="main"
								onmouseout="MM_swapImgRestore()"
								onmouseover="MM_swapImage('Image2','','images/index_2.gif',1)" onclick="return judgeAuth('stockin')"><img
								src="images/index_02.gif" name="Image2" id="Image2"
								border="0" width="92"></a></td>
							<td valign="middle" align="center"><img src="images/index_r.gif" width="97"></td>
							<td align="center"><a href="publiceva/publicEva-add.action" target="main"
								onmouseout="MM_swapImgRestore()"
								onmouseover="MM_swapImage('Image3','','images/index_3.gif',1)" onclick="return judgeAuth('stockin')"><img
								src="images/index_03.gif" name="Image3" id="Image3"
								border="0" width="92"></a></td>
						</tr>
					</tbody>
				</table>
			</td>
		</tr>
		<tr>
			<td align="center" valign="top">
				<table border="0" cellpadding="0" cellspacing="0" width="400" align="center">
					<tbody>
						<tr>
							<td align="center"><a href="jobeva/jobItem-list.action" target="main"
								onmouseout="MM_swapImgRestore()"
								onmouseover="MM_swapImage('Image4','','images/index_4.gif',1)" onclick="return judgeAuth('stockin')"><img
								src="images/index_04.gif" name="Image4" id="Image4"
								border="0" width="92"></a></td>
							<td valign="middle" align="center"><img src="images/index_r.gif" width="97"></td>
							<td align="center"><a href="jobeva/jobEvaEntry-add.action" target="main"
								onmouseout="MM_swapImgRestore()"
								onmouseover="MM_swapImage('Image5','','images/index_5.gif',1)" onclick="return judgeAuth('stockin')"><img
								src="images/index_05.gif" name="Image5" id="Image5"
								border="0" width="92"></a></td>
						</tr>
					</tbody>
				</table>
			</td>
		</tr>
		<!-- 
		<tr>
			<td align="center" valign="top">
				<table border="0" cellpadding="0" cellspacing="0" width="400" align="center">
					<tbody>
						<tr>
							<td align="center"><a href="system/config-edit.action" target="main"
								onmouseout="MM_swapImgRestore()"
								onmouseover="MM_swapImage('Image7','','images/index_7.gif',1)" onclick="return judgeAuth('stockin')"><img
								src="images/index_07.gif" name="Image7" id="Image7"
								border="0" width="92"></a></td>
							<td valign="middle" align="center" width="97"><img src="images/index_r.gif" width="97"></td>
							<td align="center"><a href="system/legalDays-list.action" target="main"
								onmouseout="MM_swapImgRestore()"
								onmouseover="MM_swapImage('Image6','','images/index_6.gif',1)" onclick="return judgeAuth('stockin')"><img
								src="images/index_06.gif" name="Image6" id="Image6"
								border="0" width="92"></a></td>
						</tr>
					</tbody>
				</table>
			</td>
		</tr>
		 -->
		</s:if>
	</tbody>
</table>
</body>
</html>